<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <script>
            function f1(){
                // alert(1+1);
                console.log(5%2);//1
                console.log(-5%2);//-1
                console.log(5%-2);//1
                console.log(-5%-2);//-1


                var i1=100;
                var s1="100";
                var s2="100";

                //==比较值，不比较类型
                console.log(i1==s1);
                console.log(i1===s1);
                console.log(s1===s2);


                var person={"name":"abc","age":21,"sex":"m"};


                for(fieldName in person){
                    console.log(fieldName+"="+person[fieldName]);
                }





            }
        </script>
    </head>
    <body onload="f1();">

    </body>
</html>